package cl.ufro.dis.ttmic;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;



public class Login extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Spinner spinner = (Spinner) findViewById(R.id.combo_colegios);
        ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
                this, R.array.colegios, android.R.layout.simple_spinner_item);
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        spinner.setAdapter(adapter);
        
        Toast.makeText(getApplicationContext(), "Ingrese sus datos",
				Toast.LENGTH_SHORT).show();
        
        View seleccionAlumno = findViewById(R.id.btn_iniciar);
        seleccionAlumno.setOnClickListener(this);
    }

	public void onClick(View v) {
		
		switch(v.getId()){
		case R.id.btn_iniciar:
			Intent i = new Intent(this, MenuTabs.class);
			startActivity(i);
			break;
		
		}
		
	}
	

    
    
}